package chp13;

public class Test8 {
    public static void main(String[] args) {
        //lastIndexOf 从后往前找
        String content = "今天星期六,明天星期天";
        int index = content.lastIndexOf("星");
        System.out.println(index);

    }
}
